//
//  BlockAlertView.h
//  fmapp
//
//  Created by zhouyang on 14-8-31.
//  Copyright (c) 2014年 CheDong Technology Co., Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void (^TouchBlock)(NSInteger);
typedef void (^TouchBlock2)(NSInteger,NSString*);
@interface BlockAlertView : UIAlertView<UITextFieldDelegate>
@property(nonatomic,copy)TouchBlock block;
@property(nonatomic,copy)TouchBlock2 block2;
//需要自定义初始化方法，调用Block
- (id)initWithTitle:(NSString *)title
            message:(NSString *)message
  cancelButtonTitle:(NSString *)cancelButtonTitle
  otherButtonTitles:(NSString*)otherButtonTitles
              block:(TouchBlock)block;

- (id)initInputViewWithTitle:(NSString *)title
            message:(NSString *)message
  cancelButtonTitle:(NSString *)cancelButtonTitle
  otherButtonTitles:(NSString*)otherButtonTitles
                       block:(TouchBlock2)block;
@property (nonatomic,strong) UITextField *textFiled;
@end
